package com.github.phoenics.militia.bazookaFx.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.phoenics.militia.bazookaFx.dao.EntityDao;
import com.github.phoenics.militia.bazookaFx.domain.entity.Entity;
import org.springframework.stereotype.Service;

/**
 * @author Phoenics Chow
 * on 2019年02月11日
 */
@Service
public class EntityService extends ServiceImpl<EntityDao, Entity> {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(EntityService.class);
    public void deleteAllEntities(Long appId){
        QueryWrapper<Entity> wrapper=new QueryWrapper<>();
        wrapper.eq("app_id",appId);
        this.baseMapper.delete(wrapper);
    }
    public Entity reCfgEntity(Entity entity){
        return entity;

    }

}
